<!doctype html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>爱贝儿医</title>
    <link rel="stylesheet" href="../style/common.css?<?=版本?>">
    <meta name="viewport" content="width=device-width, minimum-scale=1.0, maximum-scale=1.0,user-scalable=no"/>
    <script src="../js/jquery.js"></script>
</head>

<?php
/**
 * Created by PhpStorm. User: ADun, Date: 14-10-15 下午10:11
 * Description:
 */
$openId=getCurrentUserOID();

if(empty($openId)) exit('参数错误');

$bm = new CUI数据中心(Page::b病历管理,$openId);
$语音课程详情 = $bm->生成有效链接('Seller17Shipin_Lessons',$_GET['state']);


$语音课程 = $bm->fc查语音课程($_GET['sid']);
print_r($语音课程);
?>

<body>
<div class="content" id="content">
    </div>

<input type="button" name="查询" id="查询起始值" onclick="查看历史()" value="1" style="background-color:red" />
</body>
</html>
<script src="../resource/js/jquery-1.11.1.min.js"></script>
<script language="JavaScript">
    function 查看历史(){
        var page = $('#查询起始值').val();
        $.post('agent_manages.php',{'page':page,"课程id":'<?=$_GET['sid']?>','参数':'查看课程历史消息'},function(data){

            // alert(data);
            // result = eval(data);
             json = eval(data);

            str ='';

        for(var i=0; i<json.length; i++)
        {
             if(json[i].result2){
                 str+='<p>'+json[i].result2+'</p>';
                 $('#show123').remove();
             }

            str+='<div class="chat-item-o"> <div class="style1"><div class="chat-item-img"><img src="'+json[i].头像+'" alt=""></div></div> <div class="chat-item-contl"><span class="font">'+json[i].内容+'</span> <div class="clear"></div> </div>';


        }

            $(str).prependTo("#content");

        $('#查询起始值').val(page*1 + 1);
           // alert(data);

        });




    }



</script>